<?php
require_once ('class/user.php');
session_start();
$user = User::get($_SESSION['userId']);
if (is_null($user)){
	header('Location: index.php');
}
?>
